<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>个人信息修改</title>
<meta name="decorator" content="default" />
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">
<jsp:include page="/static/member/themes/default/header.jsp" />
<script language="javascript" type="text/javascript" src="${ctxStatic}/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$("#errorMessage").hide()
	var sex = $("#msex").val();
	
	$(":radio[name='sex'][value='"+sex+"']").attr("checked","true"); 
	
});

function checkForm(){
	var nick = $.trim($('#nickName').val());
	if(nick == null || nick ==''){
		$("#errorMessage").html("请输入姓名");
		$("#errorMessage").show()
		return false;
	}
	else{
			$("#errorMessage").hide()
		return true;
	}
}

</script>


</head>
<body>

	<div class="main">
		<div>
			<div>
				<div class="ztContent">
					<div data-role="header" align="center" style="margin: 10px;">
					
					</div>
					

					<input type="hidden" id="msex" value="${wechatMember.sex }">

					<form id="inputForm" action="${ctxFront}/member/updatePersonInformation?uid=${uid}"
						method="post" onsubmit=" return checkForm();">
						<input type="hidden" name="topage" value="${topage }" /> <input
							type="hidden" name="wechatId" value="${wechatId }" /> <input
							type="hidden" name="style" value="${style}" />
							<input type="hidden" name="mid" value="${wechatMember.id  }" />
						<div align="center">
						<table>
						<tr>
						<td width="20%">
						姓名:
						</td>
						<td width="auto">
						<input name="name" type="text" id="nickName"
										maxlength="50" class="required" value="${wechatMember.name }" style="height:26px; " class="input-medium"/>
						</td>
						</tr>
						<tr>
						<td width="20%">
						性别:
						</td>
						<td width="auto">
						
					
						<div align="left">			
						<input type="radio" name ="sex" value="男"/>男
						<input type="radio" name ="sex" value="女"/>女
						<input type="radio" name ="sex" value="保密"/>保密			
						</div>
												
						<div style="height:10px">
						
						
						</div>
						</td>
						</tr>
							
							
						<tr>
						<td width="20%">
						生日:
						</td>
						<td width="auto">
										<input name="birthday"  type="text" id="d243"  onfocus="WdatePicker({skin:'whyGreen',dateFmt:'yyyyMMdd'})" value="${wechatMember.birthday }" class="Wdate input-medium" style="height:26px;width:204px" />
						</td>
						</tr>
						
						</table>
						</div>
						
					<div  align="center" class="alert" id="errorMessage" style="color:red;"  >
									
							</div>

							<div align="center">
								<input id="btnSubmit" class="btn btn-danger" type="submit"
									value="确 定" />
							</div>
						
					</form>

				</div>
			</div>
		</div>
	</div>
	<c:if test="${uid ne '34' }">
		<jsp:include page="/static/member/themes/default/footer.jsp">
			<jsp:param value="${id }" name="uid" />
		</jsp:include>
	</c:if>
</body>
</html>
